package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class BibliotecaApp {

    public static void main(String[] args) {
        PrintStream printStream = System.out;
        BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));

        Library library = new Library();
        library.add(new LibraryBook("The Wizard of Oz"));

        Map<String, LibraryAction> options = new HashMap<String, LibraryAction>();

        LibraryAction bookLister = new BookLister(library, printStream);
        LibraryAction checkOuter = new CheckOuter(printStream, library);

        options.put("1",bookLister);
        options.put("2",checkOuter);

        new Menu(printStream, "Welcome to Menu!", options, bufferedReader ).run();
    }
}
